package com.goods.business.service;

import com.goods.common.model.business.Supplier;
import com.goods.common.vo.system.PageVO;

import java.util.List;

/**
 * Title:
 * Author: fusu
 * DateTime:  2023/3/24
 * Description:
 **/
public interface SupplierService {
    /**
     * @return java.util.List<com.goods.common.model.business.Supplier>
     * @Author: fusu
     * @Description: 物资来源分类列表展示+查询
     * @DateTime:15:26 2023/3/24
     * @params: [pageNum, pageSize, supplier]
     */
    PageVO findSupplierList(Integer pageNum, Integer pageSize, Supplier supplier);

    /**
     * @return void
     * @Author: fusu
     * @Description: 添加物资来源
     * @DateTime:16:06 2023/3/24
     * @params: [supplier]
     */
    void addSupplier(Supplier supplier);

    /**
     * @return com.goods.common.model.business.Supplier
     * @Author: fusu
     * @Description: 根据id查询物资来源
     * @DateTime:16:11 2023/3/24
     * @params: [supplierId]
     */
    Supplier getBySupplierId(Long supplierId);

    /**
     * @return void
     * @Author: fusu
     * @Description: 根据id删除
     * @DateTime:16:13 2023/3/24
     * @params: [supplierId]
     */
    void deleteBySupplierId(Long supplierId);

    /**
     * @return void
     * @Author: fusu
     * @Description: 根据id更新
     * @DateTime:16:17 2023/3/24
     * @params: [supplier]
     */
    void updateBySupplierId(Supplier supplier);

    /**
     * @return java.util.List<com.goods.common.model.business.Supplier>
     * @Author: fusu
     * @Description: 获取所有
     * @DateTime:14:43 2023/3/25
     * @params: []
     */
    List<Supplier> findAll();
}
